import { request } from '@/utils'

export function list(data) {
  return request({
    url: `reviewRecords/selectPage`,
    method: 'post',
    data,
  })
}

export function info(params) {
  return request({
    url: `reviewRecords/selectInfoById`,
    method: 'get',
    params,
  })
}

export function add(data) {
  return request({
    url: `reviewRecords/add`,
    method: 'post',
    data,
  })
}

export function edit(data) {
  return request({
    url: `reviewRecords/update`,
    method: 'put',
    data,
  })
}

export function del(params) {
  return request({
    url: `reviewRecords/delete`,
    method: 'delete',
    params,
  })
}

export function selectList(data) {
  return request({
    url: `projectManagement/selectProjectList`,
    method: 'post',
    data,
  })
}

// 负责人列表
export function getLeaderList() {
  return request({
    url: `reviewRecords/selectHeaderList`,
    method: 'get',
  })
}
